using StudentVideo.Data.Entities;
using StudentVideo.Shared.Enums;

namespace StudentVideo.Common.Models;

/// <summary>
/// 当前用户数据
/// </summary>
public class CurrentUser {

   /// <summary>
   /// 用户id
   /// </summary>
   public required string UserId { get; set; }

   /// <summary>
   /// 用户权限范围
   /// </summary>
   public required UserRangeEnum UserRange { get; set; }

   /// <summary>
   /// 角色 id
   /// </summary>
   public string? RoleId { get; set; }

   /// <summary>
   /// 用户信息
   /// </summary>
   public UserEntity? UserInfo { get; set; }

   /// <summary>
   /// 角色信息
   /// </summary>
   public RoleEntity? RoleInfo { get; set; }

   /// <summary>
   /// 权限列表
   /// </summary>
   public List<PermissionEntity> Permissions { get; set; } = [];
}
